package com.github.rxyor.example.dubbo.spi.controller;

import com.github.rxyor.common.core.model.R;
import com.github.rxyor.common.core.util.RUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2019-05-29 Wed 14:56:00
 * @since 1.0.0
 */
@Slf4j
@Api(value = "Test")
@RestController
@AllArgsConstructor
@RequestMapping("/test")
public class TestController {

    @ApiOperation(value = "/example", httpMethod = "POST")
    @PostMapping("/example")
    @ResponseBody
    public R addDelayJob() {
        return RUtil.success(null);
    }
}
